<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改学生信息')" />
	<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
	<form class="form-horizontal m" id="form-firm-edit" th:object="${firm}">
		<input name="firmId" th:field="*{firmId}" type="hidden" >
		<div class="form-group">
			<label class="col-sm-3 control-label">公司名称：</label>
			<div class="col-sm-8">
				<input name="firmName" th:field="*{firmName}" class="form-control" type="text" readonly>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">负责人：</label>
			<div class="col-sm-8">
				<input name="firmChargeUser" th:field="*{firmChargeUser}" class="form-control" type="text" readonly>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">联系电话：</label>
			<div class="col-sm-8">
				<input name="firmTel" th:field="*{firmTel}" class="form-control" type="text" readonly>
			</div>
		</div>

		<div class="form-group">
			<label class="col-sm-3 control-label">所属城域：</label>
			<div class="col-sm-8">
				<input name="sysCityId" th:field="*{sysCityId}" class="form-control" type="text" readonly>
			</div>
		</div>
		<!--        <div class="form-group">-->
		<!--            <label class="col-sm-3 control-label">性别：</label>-->
		<!--            <div class="col-sm-8">-->
		<!--                <select name="studentSex" class="form-control m-b">-->
		<!--                    <option value="">所有</option>-->
		<!--                </select>-->
		<!--                <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>-->
		<!--            </div>-->
		<!--        </div>-->
		<div class="form-group">
			<label class="col-sm-3 control-label">状态：</label>
			<!--            <div class="radio-box">-->
			<!--                <label th:for="status" th:text="可用"></label>-->
			<!--                <input type="radio" name="status" value="1" >-->
			<!--            </div>-->
			<!--            <div class="radio-box">-->
			<!--                <label th:for="status" th:text="不可用"></label>-->
			<!--                <input type="radio" name="status" value="2">-->
			<!--            </div>-->
			<div class="radio-box" th:each="dict : ${@dict.getType('sys_job_status')}">
				<input type="radio" th:id="${dict.dictCode}" name="visible" th:value="${dict.dictValue}" th:field="*{status}" readonly>
				<label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">创建时间：</label>
			<div class="col-sm-8">
				<div class="input-group date">
					<input name="creatTime" th:value="${#dates.format(firm.creatTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" readonly>
					<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
				</div>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">创建人：</label>
			<div class="col-sm-8">
<!--				<input name="sysCreateUserId" th:field="*{sysCreateUserId}" class="form-control" type="text" readonly>-->
				<input name="sysUser.userName" th:value="${user.userName}" readonly class="form-control" type="text">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">厂商描述：</label>
			<div class="col-sm-8">
				<input name="firmDesc" th:field="*{firmDesc}" class="form-control" type="text" readonly>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">联系地址：</label>
			<div class="col-sm-8">
				<input name="address" th:field="*{address}" class="form-control" type="text" readonly>
			</div>
		</div>

	</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
	var prefix = ctx + "purchase/firm";
	$("#form-firm-edit").validate({
		focusCleanup: true
	});

	function submitHandler() {
		if ($.validate.form()) {
			$.operate.save(prefix + "/edit", $('#form-firm-edit').serialize());
		}
	}

	$("input[name='creatTime']").datetimepicker({
		format: "yyyy-mm-dd",
		minView: "month",
		autoclose: true
	});
</script>
</body>
</html>